<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<include file="./Home/Tpl/Admin/Common/cssjs.html" />
</head>
<body>
<style type="text/css">
	html{_overflow-y:scroll}
</style>
<div class="pad-10">
  <div style="width:500px; padding:2px; border:1px solid #d8d8d8; float:left; margin-top:10px; margin-right:10px; overflow:hidden">
    <table width="100%" cellspacing="0" class="table-list" >
      <thead>
        <tr>
          <th width="100">栏目ID</th>
          <th >栏目名称</th>
          <th width="150" >所属模型</th>
        </tr>
      </thead>
      <tbody id="load_catgory">
      </tbody>
    </table>
  </div>
  <div style="overflow:hidden;_float:left;margin-top:10px;*margin-top:0;_margin-top:0; width:144px">
    <fieldset>
      <legend>已选栏目</legend>
      <ul class='list-dot-othors' id='catname'>
      </ul>
    </fieldset>
  </div>
</div>
<style type="text/css">
.line_ff9966,.line_ff9966:hover td{background-color:#FF9966}
.line_fbffe4,.line_fbffe4:hover td {background-color:#fbffe4}
.list-dot-othors li{float:none; width:auto}
</style>
<script type="text/javascript"> 
<!--
function select_list(obj, title, id) {
    var relation_ids = window.top.$('#relation').val();
    var sid = 'v' + id;
    $(obj).attr('class', 'line_fbffe4');
    var str = "<li id='" + sid + "'>·<input type='hidden' name='othor_catid[" + id + "]'><span>" + title + "</span><a href='javascript:;' class='close' onclick=\"remove_id('" + sid + "')\"></a></li>";

    window.top.$('#add_othors_text').append(str);
    $('#catname').append(str);
    if (relation_ids == '') {
        window.top.$('#relation').val(id);
    } else {
        relation_ids = relation_ids + '|' + id;
        window.top.$('#relation').val(relation_ids);
    }
}
//移除ID
function remove_id(id) {
    $('#' + id).remove();
    window.top.$('#' + id).remove();
}
function change_siteid() {
		$("#load_catgory").load("?a=public_getsite_categorys&m=Content&g=Contents&catid={$catid}");
}
change_siteid();
//-->
</script>
</body>
</html>